<?php
/**
 * select data into database
 * array (
 * 'query' => 'query'
 * )
 * @author astolarski
 *
 */
class Core_Controller_Selectdata implements Core_Controller_Mainable {
	
	/**
	 * 
	 * @var object $select_data
	 */
	public $select_data;
	
	/**
	 * constructor()
	 */
	public function __construct(){
		$this->select_data = new Core_Model_Selectdata;	
	}
	
	/**
	 * get data table
	 * 
	 * @see Core_Controller_Mainable::main()
	 */
	public function main(array $variables = null){
		return $this->select_data->main($variables);
	}
	
}